﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Microhard.Permission.Interface;
using Micrhard.FMCG.Server.Models;
using Micrhard.FMCG.Server.Interface;
using Microsoft.Practices.Unity;
using Microhard.Permission.MVCFilter.MVCFilter;

namespace Microhard.FMCG.WebUI.Areas.Notice.Controllers
{
    public class MyNoticeController : MicroHardBaseController<NoticeModel>
    {
        private IMyNotice _resp = null;
        [Dependency]
        public IMyNotice Category
        {
            set
            {
                base._repository = value;
                _resp = value;
            }
            get
            {
                return _resp;
            }
        }

        [MVCFilterAtrForWeixinMP]
        public ActionResult Show(Guid noticeID)
        {
            var model = _resp.GetModelByID(noticeID);
            return View(model);
        }

    }
}
